package com.mj.mapper;

import com.mj.entity.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BookMapper {
    @Select("select * from book")
    public List<Book> queryAll();
    @Delete("delete from book where id = #{id}")
    public int deleteById(int id);
}
